package com.hongyuan.sellfitness.ui.home.view_mode;

import androidx.annotation.NonNull;
import androidx.databinding.ObservableField;

import com.hongyuan.mvvmhabitx.binding.command.BindingAction;
import com.hongyuan.mvvmhabitx.binding.command.BindingCommand;
import com.hongyuan.sellfitness.base.ItemViewModel;
import com.hongyuan.sellfitness.ui.home.beans.GroupClassTopBean;

public class CoachIldeTiemTopItemViewModel extends ItemViewModel<CoachIdleTimeViewModel> {

    public ObservableField<GroupClassTopBean> entity = new ObservableField<>();

    public CoachIldeTiemTopItemViewModel(@NonNull CoachIdleTimeViewModel viewModel, GroupClassTopBean bean) {
        super(viewModel);

        entity.set(bean);
    }

    //条目的点击事件
    public BindingCommand itemClick = new BindingCommand(new BindingAction() {
        @Override
        public void call() {
            viewModel.changeList(CoachIldeTiemTopItemViewModel.this);
        }
    });

}
